function p(){
document.getElementById("vt1").style.display="block";
document.getElementById("vt2").style.display="none";
document.getElementById("vt3").style.display="none";
document.getElementById("p1").style.background="url(../resources/images/pages/images/p1.jpg)";
document.getElementById("p2").style.background="url(../resources/images/pages/images/p2.jpg)";
document.getElementById("p3").style.background="none";
}
function pp(){
document.getElementById("vt1").style.display="none";
document.getElementById("vt2").style.display="block";
document.getElementById("vt3").style.display="none";
document.getElementById("p1").style.background="none";
document.getElementById("p2").style.background="url(../resources/images/pages/images/p1.jpg)";
document.getElementById("p3").style.background="none";

}
function ppp(){
document.getElementById("vt1").style.display="none";
document.getElementById("vt2").style.display="none";
document.getElementById("vt3").style.display="block";
document.getElementById("p1").style.background="none";
document.getElementById("p2").style.background="url(../resources/images/pages/images/p3.jpg)";
document.getElementById("p3").style.background="url(../resources/images/pages/images/p1.jpg)";
}

function z(){
document.getElementById("zk").style.display="none";
document.getElementById("sq").style.display="block";
document.getElementById("wdxz").style.display="block";
}
function s(){
document.getElementById("zk").style.display="block";
document.getElementById("sq").style.display="none";
document.getElementById("wdxz").style.display="none";
}

function jy(){
document.getElementById("a2").style.display="none";
document.getElementById("a1").style.display="block";
document.getElementById("jy").style.color="#3facff";
document.getElementById("zy").style.color="#000";
document.getElementById("zy").style.background="none";
document.getElementById("jy").style.background="url(../resources/images/pages/images/jya.jpg)";

}
function zy(){
document.getElementById("a2").style.display="block";
document.getElementById("a1").style.display="none";
document.getElementById("zy").style.color="#3facff";
document.getElementById("jy").style.color="#000";
document.getElementById("jy").style.background="none";
document.getElementById("zy").style.background="url(../resources/images/pages/images/jya.jpg)";
}
window.onresize=function(){
	var bHeight=$(document.body).height();
	var wHeight=$(window).height();
	var contentHeight=$("#contentBody").height();
	if(contentHeight<wHeight)
	{
		$("#contentBody").css("height",wHeight+"px");
		//$(".foot").css("position","absolute");
		$(".foot").css("position","absolute");
		$(".foot").css("bottom","0");
		$(".foot").css("left","0");
	}
	else{
		$(".foot").css("position","relative");
		$(".foot").css("top","0");
		$(".foot").css("left","0");
	}
//	else{
//		 if(contentHeight<wHeight||contentHeight<bHeight)
//		{
//			var h=wHeight>bHeight? wHeight:bHeight;
//			$("body").css("height",h+"px");
//			$(".foot").css("position","relative");
//			$(".foot").css("top","0");
//			$(".foot").css("left","0");
//		}
//	}
};
window.onload=function(){
	var bHeight=$(document.body).height();
	var wHeight=$(window).height();
	var contentHeight=$("#contentBody").height();
	if(contentHeight<wHeight)
	{
		$("#contentBody").css("height",wHeight+"px");
		$(".foot").css("position","absolute");
		$(".foot").css("bottom","0");
	}
	else{
		 if(contentHeight>wHeight&&contentHeight<bHeight)
		{
			var h=wHeight>bHeight? wHeight:bHeight;
			$("body").css("height",h+"px");
			$(".foot").css("position","relative");
			$(".foot").css("top","0");
			$(".foot").css("left","0");
		}
	}
};

